<?php

session_start();
require_once 'include/init.php';
require_once ROOT_DIR . 'include/lib/weibooauth.php';

$o = new WeiboOAuth( WB_AKEY , WB_SKEY , $_SESSION['keys']['oauth_token'] , $_SESSION['keys']['oauth_token_secret']  );

$last_key = $o->getAccessToken(  $_REQUEST['oauth_verifier'] ) ;

$_SESSION['last_key'] = $last_key;
//echo "<script type='text/javascript'>window.location.href='pubpic.php';</script>";
Util::msgRedirect('正在跳转...', 'pubpic.php');
